{"version":3,"file":"auto_font_scale.bundle.map.js","names":["this","BX","Landing","UI","exports","main_core","Entry","constructor","element","maxHeight","MIN_SIZE","startSize","parseInt","Dom","style","currentSize","letterSpacingRatio","parseFloat","currentLetterSpacing","MIN_LETTER_SPACING","startLineHeight","Type","isNumber","toFixed","MIN_LINE_HEIGHT","currentLineHeight","prevWidth","clientWidth","calcMaxHeight","document","documentElement","clientHeight","offsetParent","Math","min","resetSize","setProperty","adjust","isNeedDecrease","decreaseSize","isNeedIncrease","increaseSize","scrollWidth","offsetHeight","newSize","STEP_SIZE_PERCENTS","floor","max","intervalId","setInterval","finishAdjust","setFontSize","ceil","clearInterval","size","newLineHeight","newLetterSpacing","round","bind","Utils","slice","onCustomEvent","lastWidth","width","window","AutoFontScale","static","WIDTH_LIMIT","result","elements","entries","map","createEntry","onResize","Runtime","debounce","onAddBlock","forceAdjust","isResized","needAdjust","isNeedAdjust","forEach","entry","addElements","containsElement","some","push","event","block","querySelectorAll","Tool"],"sources":["auto_font_scale.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,EACtBD,KAAKC,GAAGC,QAAUF,KAAKC,GAAGC,SAAW,CAAC,EACtCF,KAAKC,GAAGC,QAAQC,GAAKH,KAAKC,GAAGC,QAAQC,IAAM,CAAC,GAC3C,SAAUC,EAAQC,GAClB,aAEA,MAAMC,EACJC,YAAYC,GACVR,KAAKS,UAAY,EACjBT,KAAKQ,QAAUA,EACfF,EAAMI,SAAW,EACjBV,KAAKW,UAAYC,SAASP,EAAUQ,IAAIC,MAAMN,EAAS,cACvDR,KAAKe,YAAcf,KAAKW,UACxBX,KAAKgB,mBAAqBX,EAAUQ,IAAIC,MAAMN,EAAS,kBACvDR,KAAKgB,mBAAqBC,WAAWjB,KAAKgB,qBAAuB,EACjEhB,KAAKgB,oBAAsBhB,KAAKW,UAChCX,KAAKkB,qBAAuBZ,EAAMa,mBAClCnB,KAAKoB,gBAAkBH,WAAWZ,EAAUQ,IAAIC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